<template>
  <div @click="onSelect" class="xixi">
    <slot />
  </div>
</template>
<script setup>
const props = defineProps({
  value: {
    type: [
      String,
      Number,
    ],
    required: true,
  },
});
// 吸取方法
const emits = inject('emits');
function onSelect() {
  emits('select', props.value);
}
</script>
<style>
  .xixi{
    text-align: center;
    width: 100px;
    height: 30px;
    line-height: 30px;
    margin-top: 6px;
    border: 1px solid #333;
  }
</style>
